<?php

class Home extends KF_Auth_Controller
{
    private $_data = array();

    function index()
    {
        $this->_data['rules'] = array(
            /*array('title' => '订单管理', 'name' => '#', 'level' => 1, 'items' => array(
                array('title' => '第三方订单列表', 'name' => '#', 'level' => 2),
                array('title' => '订单导航', 'name' => '#', 'level' => 2),
                array('title' => '小时汇总统计', 'name' => '#', 'level' => 2),
                array('title' => '平台小时汇总统计', 'name' => '#', 'level' => 2)
            )),   */         
            array('title' => '渠道管理', 'name' => '#', 'level' => 1, 'items' => array(
                array('title' => '渠道门店管理', 'name' => '/ChannelStore/index', 'level' => 2)
            )),
            array('title' => '药品管理', 'name' => '#', 'level' => 1, 'items' => array(
                array('title' => '本地药品', 'name' => '/StoreProduct/index', 'level' => 2),
                array('title' => '第三方分类', 'name' => '/ChannelCategory/index', 'level' => 2),
                array('title' => '第三方药品', 'name' => '/ChannelProduct/index', 'level' => 2),
            )),
        );

        $this->load->view('home/index', $this->_data);
    }


    function welcome()
    {
        $this->load->view('home/welcome', $this->_data);
    }
}